package base.Day02;

import java.io.FileInputStream;
import java.io.IOException;

public class CharDemo
{
    public static void main(String[] args)
    {
        char c1 = 'a';
        char c2 = '\\';
        char c3 = '\'';
        char c4 = 45;
        char c5 = 97;
        char c6 = 65;
        System.out.println(c2);
        char c7 = 20002;
        System.out.println(c7);


        String filePath = "src/news1.txt";
        int readData = 0;
        FileInputStream inputStream = null;
        try
        {
            inputStream = new FileInputStream(filePath);
            while ((readData = inputStream.read()) != -1)
            {
                System.out.println((char)readData);
            }
        }catch (IOException e)
        {
            e.printStackTrace();
        }finally
        {
            try
            {
                inputStream.close();
            }catch (IOException e)
            {
                e.printStackTrace();
            }
        }
    }
}
